<script setup>
import { RouterLink } from 'vue-router'
</script> 
<template> 
    <div class="header-btn">
        <RouterLink to="/">
            <el-button type="primary">商品列表</el-button>
        </RouterLink>
        <RouterLink to="/cart">
            <el-button type="primary">购物车</el-button>
        </RouterLink>
    </div>
</template>
 <style scoped>
 .el-button{
    margin:0 10px;
 }
</style>